<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TrackerControl: net.kollnig.missioncontrol.data.TrackerList Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="ic_launcher_round.png"/></td>
  <td id="projectalign">
   <div id="projectname">TrackerControl
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>net</b></li><li class="navelem"><b>kollnig</b></li><li class="navelem"><b>missioncontrol</b></li><li class="navelem"><b>data</b></li><li class="navelem"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html">TrackerList</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">net.kollnig.missioncontrol.data.TrackerList Class Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab89f00fe09f9c96c13e8261f9bd8bc57"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html#ab89f00fe09f9c96c13e8261f9bd8bc57">loadTrackers</a> (Context c)</td></tr>
<tr class="separator:ab89f00fe09f9c96c13e8261f9bd8bc57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20880240f0898be64a70e751be4cc017"><td class="memItemLeft" align="right" valign="top">synchronized <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_pair.html">Pair</a>&lt; <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_pair.html">Pair</a>&lt; Map&lt; Integer, Integer &gt;, Integer &gt;, <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_pair.html">Pair</a>&lt; Map&lt; Integer, Integer &gt;, Integer &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html#a20880240f0898be64a70e751be4cc017">getTrackerCountsAndTotal</a> ()</td></tr>
<tr class="separator:a20880240f0898be64a70e751be4cc017"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bd18cda88b071f94832febb69952231"><td class="memItemLeft" align="right" valign="top">Cursor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html#a2bd18cda88b071f94832febb69952231">getAppInfo</a> (int uid)</td></tr>
<tr class="separator:a2bd18cda88b071f94832febb69952231"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c830fe18ef2ce4e7cb180a4ee6a414f"><td class="memItemLeft" align="right" valign="top">synchronized List&lt; <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_category.html">TrackerCategory</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html#a1c830fe18ef2ce4e7cb180a4ee6a414f">getAppTrackers</a> (Context c, int uid)</td></tr>
<tr class="separator:a1c830fe18ef2ce4e7cb180a4ee6a414f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a62556e25d59a2bcd172ded7b4ecb0d6f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html">TrackerList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html#a62556e25d59a2bcd172ded7b4ecb0d6f">getInstance</a> (Context c)</td></tr>
<tr class="separator:a62556e25d59a2bcd172ded7b4ecb0d6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af942196941f0877a78fa0e7962045cc9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker.html">Tracker</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html#af942196941f0877a78fa0e7962045cc9">findTracker</a> (@NonNull String hostname)</td></tr>
<tr class="separator:af942196941f0877a78fa0e7962045cc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a94d1e71e7dd25488f03c82f7eee2b7b5"><td class="memItemLeft" align="right" valign="top"><a id="a94d1e71e7dd25488f03c82f7eee2b7b5" name="a94d1e71e7dd25488f03c82f7eee2b7b5"></a>
static Set&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>trackingIps</b> = new HashSet&lt;&gt;()</td></tr>
<tr class="separator:a94d1e71e7dd25488f03c82f7eee2b7b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4fdad7ed2827839c943c4d5091f2c5b"><td class="memItemLeft" align="right" valign="top"><a id="ab4fdad7ed2827839c943c4d5091f2c5b" name="ab4fdad7ed2827839c943c4d5091f2c5b"></a>
static String&#160;</td><td class="memItemRight" valign="bottom"><b>TRACKER_HOSTLIST</b> = &quot;TRACKER_HOSTLIST&quot;</td></tr>
<tr class="separator:ab4fdad7ed2827839c943c4d5091f2c5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Loads and stores the database of known tracker companies and their domains </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="af942196941f0877a78fa0e7962045cc9" name="af942196941f0877a78fa0e7962045cc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af942196941f0877a78fa0e7962045cc9">&#9670;&nbsp;</a></span>findTracker()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker.html">Tracker</a> net.kollnig.missioncontrol.data.TrackerList.findTracker </td>
          <td>(</td>
          <td class="paramtype">@NonNull String&#160;</td>
          <td class="paramname"><em>hostname</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Identifies tracker hosts</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hostname</td><td>A hostname of interest </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <code><a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker.html">Tracker</a></code> object, if host is null, null otherwise </dd></dl>

</div>
</div>
<a id="a2bd18cda88b071f94832febb69952231" name="a2bd18cda88b071f94832febb69952231"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bd18cda88b071f94832febb69952231">&#9670;&nbsp;</a></span>getAppInfo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cursor net.kollnig.missioncontrol.data.TrackerList.getAppInfo </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>uid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Retrieve info for CSV export </p><dl class="section return"><dt>Returns</dt><dd>All logged communications about app </dd></dl>

</div>
</div>
<a id="a1c830fe18ef2ce4e7cb180a4ee6a414f" name="a1c830fe18ef2ce4e7cb180a4ee6a414f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c830fe18ef2ce4e7cb180a4ee6a414f">&#9670;&nbsp;</a></span>getAppTrackers()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized List&lt; <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_category.html">TrackerCategory</a> &gt; net.kollnig.missioncontrol.data.TrackerList.getAppTrackers </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>uid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Retrieves information about all seen trackers </p><dl class="section return"><dt>Returns</dt><dd>A list of seen trackers </dd></dl>

</div>
</div>
<a id="a62556e25d59a2bcd172ded7b4ecb0d6f" name="a62556e25d59a2bcd172ded7b4ecb0d6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62556e25d59a2bcd172ded7b4ecb0d6f">&#9670;&nbsp;</a></span>getInstance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_tracker_list.html">TrackerList</a> net.kollnig.missioncontrol.data.TrackerList.getInstance </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p >Get an instance of the tracker database</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>Context </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Instance of the tracker database </dd></dl>

</div>
</div>
<a id="a20880240f0898be64a70e751be4cc017" name="a20880240f0898be64a70e751be4cc017"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20880240f0898be64a70e751be4cc017">&#9670;&nbsp;</a></span>getTrackerCountsAndTotal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">synchronized <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_pair.html">Pair</a>&lt; <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_pair.html">Pair</a>&lt; Map&lt; Integer, Integer &gt;, Integer &gt;, <a class="el" href="classnet_1_1kollnig_1_1missioncontrol_1_1data_1_1_pair.html">Pair</a>&lt; Map&lt; Integer, Integer &gt;, Integer &gt; &gt; net.kollnig.missioncontrol.data.TrackerList.getTrackerCountsAndTotal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Retrieves information about number of contacted tracking companies, for all apps </p><dl class="section return"><dt>Returns</dt><dd>Number of contacted tracking companies, for all apps </dd></dl>

</div>
</div>
<a id="ab89f00fe09f9c96c13e8261f9bd8bc57" name="ab89f00fe09f9c96c13e8261f9bd8bc57"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab89f00fe09f9c96c13e8261f9bd8bc57">&#9670;&nbsp;</a></span>loadTrackers()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void net.kollnig.missioncontrol.data.TrackerList.loadTrackers </td>
          <td>(</td>
          <td class="paramtype">Context&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >Load tracker domain database</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>Context </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>app/src/main/java/net/kollnig/missioncontrol/data/TrackerList.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
